package com.bootdo.wx.service.impl;

import com.bootdo.wx.dao.GoodsBrandDao;
import com.bootdo.wx.domain.GoodsBrandDO;
import com.bootdo.wx.service.GoodsBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class GoodsBrandServiceImpl implements GoodsBrandService {
	@Autowired
	private GoodsBrandDao goodsBrandDao;
	
	@Override
	public GoodsBrandDO get(String id){
		return goodsBrandDao.get(id);
	}
	
	@Override
	public List<GoodsBrandDO> list(Map<String, Object> map){
		return goodsBrandDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return goodsBrandDao.count(map);
	}
	
	@Override
	public int save(GoodsBrandDO goodsBrand){
		return goodsBrandDao.save(goodsBrand);
	}
	
	@Override
	public int update(GoodsBrandDO goodsBrand){
		return goodsBrandDao.update(goodsBrand);
	}
	
	@Override
	public int remove(String id){
		return goodsBrandDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return goodsBrandDao.batchRemove(ids);
	}

	@Override
	public List<Map<String, Object>> listByTypeId(String typeId) {
		return goodsBrandDao.listByTypeId(typeId);
	}

	@Override
	public List<GoodsBrandDO> queryAll() {
		return goodsBrandDao.queryAll();
	}
	
}
